package com.example.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalTime;

/**
 * ClassName:LibraryAddDTO
 * Package:com.example.dto
 * User:HP
 * Date:2025/8/24
 * Time:下午2:06
 * Author 周东汉
 * Version 1.0
 * Description:
 */

@Data
public class LibraryAddDTO {
    @NotBlank(message = "图书馆名称不能为空")
    private String name;

    @NotBlank(message = "图书馆地址不能为空")
    private String address;

    @NotNull(message = "图书馆开放时间不能为空")
    private LocalTime dailyOpenTime;

    @NotNull(message = "图书馆关闭时间不能为空")
    private LocalTime dailyCloseTime;

    @NotNull(message = "图书馆管理员不能为空")
    private Long managerId;
}
